<%@page import="com.bkav.portal.potlet.service.EmployeeLocalServiceUtil"%>
<%@page import="com.bkav.portal.potlet.model.Employee"%>
<%@page import="java.util.List"%>
<%@page import="com.liferay.portal.kernel.util.ListUtil"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.bkav.portal.potlet.service.EmployeeLocalServiceUtil"%>

<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>

<%@ include file="/html/employee/init.jsp"%>
<h3>Edit Employee</h3>
<%@ include file="/html/employee/init.jsp"%>
<portlet:actionURL var="updateEmployeeURL" name="updateEmployee" />
<%
	Long employeeId = ParamUtil.getLong(request, "employeeId");
	Employee employee = EmployeeLocalServiceUtil
			.getEmployee(employeeId);
%>
<aui:form action="<%=updateEmployeeURL%>" name="" method="post">
	<aui:input name="employeeId" value="<%=employee.getEmployeeId()%>"
		type="text" />
	<aui:input name="employeeName" value="<%=employee.getEmployeeName()%>"
		type="text" id="employeeName" label="Employee Name" />
	<aui:input name="employeeDesc" value="<%=employee.getEmployeeDesc()%>"
		type="text" id="employeeDesc" label="Employee Desc" />
	<aui:input name="employeeJob" value="<%=employee.getEmployeeJob()%>"
		type="text" id="employeeJob" label="Employee Job" />
	<aui:button-row>
		<aui:button onClick="alert('Sua ?')" type="submit"
			value="Edit" name="btSave" />
	</aui:button-row>
</aui:form>
<br />
<a href="<portlet:renderURL/>">&laquo;Go Back</a>